package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.BookingRequestConfigRespDto;
import com.cmc.cloud.cmclink.doc.api.document.req.BookingRequestConfigReqDto;
import com.cmc.cloud.cmclink.doc.service.BookingRequestConfigService;
import com.cmes.framework.common.pojo.CommonResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 装箱等要求
 *
 * @author lzp
 */

@RestController
@Validated
public class BookingRequestConfigApiImpl implements BookingRequestConfigApi {

    @Resource
    private BookingRequestConfigService bookingRequestConfigService;

    @Override
    public CommonResult<List<BookingRequestConfigRespDto>> queryBookingRequestConfig(BookingRequestConfigReqDto bookingRequestConfigReqDto) {
        return CommonResult.success(bookingRequestConfigService.queryBookingRequestConfig(bookingRequestConfigReqDto));
    }
}
